package com.qingzhi.spring.demo.model;


public class UserInfo {
    //在客户端不进行对其属性初始化的时候呢，对于非引用类型呢，不会报错，因为在创建UserInfo这个类的时候就进行初始化了
    private String name;
    private Integer age;

    public UserInfo() {

    }

    public UserInfo(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
